 
package com.edu.hre.common.cache;
  

public interface PassiveDynaCache { 
	
	public static final String BEAN_NAME = "passiveDynaCache";
	boolean containsKey(Object key);
	void removeCachedItem(Object key);
	Object getCachedItem(Object key);
	void setCachedItem(Object key, int timeToLive,  Object value);  
	void clearCache();   
	void removeIfKeyStartWith(String startValue);
	
	// memcache timeout 
	public static final int TIMEOUT_2_MINS = 120;
	public static final int TIMEOUT_3_MINS = 180;
	public static final int TIMEOUT_5_MINS = 300;
	public static final int TIMEOUT_10_MINS = 600;
	public static final int TIMEOUT_30_MINS = 600 * 3;
	public static final int TIMEOUT_20_MINS = 600 * 2;
	public static final int TIMEOUT_12_MINS = 720;
	public static final int TIMEOUT_60_MINS = 720 * 5;
	public static final int TIMEOUT_24_HOURS = 60 * 60 * 24;
	public static final int TIMEOUT_12_HOURS = 60 * 60 * 12;
	public static final int TIMEOUT_6_HOURS = 60 * 60 * 6;
	public static final int TIMEOUT_3_HOURS = 60 * 60 * 3;
	public static final int TIMEOUT_24H = 3600 * 24;
}